//
//  StructureHeader.m
//  New_Runway
//
//  Created by mack on 2018/2/8.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "StructureHeader.h"

@implementation StructureHeader

-(void)awakeFromNib{
    [super awakeFromNib];
    
    
}
-(void)setIsSale:(BOOL)isSale{
    _isSale = isSale;
}
-(void)setIndex:(NSInteger)index{
    _index = index;
    if (index == 0) {
        if (_isSale == YES) {
             self.brandL.text = @"来源       ";
        }else{
            self.brandL.text = @"品牌       ";
        }
    }else if (index == 1){
        if (_isSale == YES) {
            self.brandL.text = @"销售       ";
        }else{
            self.brandL.text = @"车系       ";
        }
    }else if (index == 2){
        self.brandL.text = @"车龄       ";
        
    }else if (index == 3){
        self.brandL.text = @"库龄       ";
        
    }
}
@end
